#define _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"


void test1()
{
	SL* plist = NULL;
	SLPushBack(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);
	SLPushBack(&plist, 4);
	SLPushBack(&plist, 5);
	SLPrint(plist);
}


void test2()
{
	SL* plist = NULL;
	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);
	SLPushFront(&plist, 5);
	SLPrint(plist);

	SLPushBack(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);
	SLPushBack(&plist, 4);
	SLPushBack(&plist, 5);
	SLPrint(plist);
}

void test3()
{
		SL* plist = NULL;
		SLPushFront(&plist, 1);
		SLPushFront(&plist, 2);
		SLPushFront(&plist, 3);
		SLPrint(plist);

		SLPushBack(&plist, 1);
		SLPushBack(&plist, 2);
		SLPushBack(&plist, 3);
		SLPrint(plist);
			
		SLPopBack(&plist);
		SLPopBack(&plist);
		SLPopBack(&plist);
		SLPrint(plist);

		SLPopBack(&plist);
		SLPopBack(&plist);
		SLPrint(plist);
		
		SLPopBack(&plist);
		SLPrint(plist);

		SLPopBack(&plist);


}



void test4()
{
	SL* plist = NULL;
	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);
	SLPushFront(&plist, 5);
	SLPrint(plist);

	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPrint(plist);
}

int main()
{
	//test1();
	//test2();

	//test3();

	test4();
}